﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lswweb.Domain;

namespace Lswweb.Controls
{
    public class ProductUpFileCreate : UpFileCreate
    {
        protected override void InsertedHandler(Lswweb.Model.UpFileInfo info)
        {
            Products.AddImage(ProductId,info.Id);

        }

        public int ProductId
        {
            get { return Convert.ToInt32(SiteContext.Current.Parameters); }
        }
    }
}
